<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>大事件登录/注册页面</title>
    <!-- 引入文件 -->
    <link rel="stylesheet" href="/favicon.ico">
    <link rel="stylesheet" href="/assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="/assets/css/login.css">
</head>

<body>
    <!-- 1.顶部logo -->
    <div class="layui-main">
        <img src="/assets/images/logo.png" alt="">
    </div>
    <!-- 2.注册和登录 -->
    <div class="loginAndRegBox">
        <!-- 2.1:登录注册标题 -->
        <div class="titleBox"></div>
        <!-- 2.2:登录区 -->
        <div class="login-box">
            <form class="layui-form" id="form_login">
                <!-- 账户框 -->

                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-tree"></i>
                    <input type="text" name="username" required lay-verify="required" placeholder="请输入账号"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 密码框 -->

                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-face-surprised"></i>
                    <input type="text" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 登录按钮 -->
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit
                        lay-filter="formDemo">立即登录</button>
                </div>
                <!-- a -->
                <div class="layui-form-item links">
                    <a href="javascript:;" id="link_reg">去注册页面</a>
                </div>
            </form>

        </div>
        <!-- 2.3：注册区 -->
        <div class="reg-box" style=" display: none">
            <form class="layui-form" id="form_reg">
                <!-- 账户框 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-tree"></i>
                    <input type="text" name="username" required lay-verify="required" placeholder="请输入账户名"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 密码框 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-face-smile-b"></i>
                    <input type="text" name="password" required lay-verify="required|pwd" placeholder="请输入密码"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 确认密码框 -->
                <div class="layui-form-item">
                    <i class="layui-icon layui-icon-face-surprised"></i>
                    <input type="text" name="repassword" required lay-verify="required|pwd|repwd" placeholder="请确认密码"
                        autocomplete="off" class="layui-input">
                </div>
                <!-- 注册按钮 -->
                <div class="layui-form-item">
                    <button class="layui-btn layui-btn-fluid layui-btn-normal" lay-submit
                        lay-filter="formDemo">立即注册</button>
                </div>
                <!-- a -->
                <div class="layui-form-item links">
                    <a href="javascript:;" id="link_login">去注册页面</a>
                </div>
            </form>

        </div>
    </div>



    <script src="/assets/lib/layui/layui.all.js"></script>
    <script src=" /assets/lib/jquery.js"></script>
    <script src="/assets/js/baseApi.js"></script>
    <script src="/assets/js/login.js"></script>
</body>

</html>